﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DD9 RID: 3545
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RecallPetCsReq : IMessage<RecallPetCsReq>, IMessage, IEquatable<RecallPetCsReq>, IDeepCloneable<RecallPetCsReq>, IBufferMessage
	{
		// Token: 0x17002CF9 RID: 11513
		// (get) Token: 0x06009F00 RID: 40704 RVA: 0x001A9188 File Offset: 0x001A7388
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RecallPetCsReq> Parser
		{
			get
			{
				return RecallPetCsReq._parser;
			}
		}

		// Token: 0x17002CFA RID: 11514
		// (get) Token: 0x06009F01 RID: 40705 RVA: 0x001A918F File Offset: 0x001A738F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RecallPetCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002CFB RID: 11515
		// (get) Token: 0x06009F02 RID: 40706 RVA: 0x001A91A1 File Offset: 0x001A73A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RecallPetCsReq.Descriptor;
			}
		}

		// Token: 0x06009F03 RID: 40707 RVA: 0x001A91A8 File Offset: 0x001A73A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RecallPetCsReq()
		{
		}

		// Token: 0x06009F04 RID: 40708 RVA: 0x001A91B0 File Offset: 0x001A73B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RecallPetCsReq(RecallPetCsReq other) : this()
		{
			this.summonedPetId_ = other.summonedPetId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009F05 RID: 40709 RVA: 0x001A91D5 File Offset: 0x001A73D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RecallPetCsReq Clone()
		{
			return new RecallPetCsReq(this);
		}

		// Token: 0x17002CFC RID: 11516
		// (get) Token: 0x06009F06 RID: 40710 RVA: 0x001A91DD File Offset: 0x001A73DD
		// (set) Token: 0x06009F07 RID: 40711 RVA: 0x001A91E5 File Offset: 0x001A73E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SummonedPetId
		{
			get
			{
				return this.summonedPetId_;
			}
			set
			{
				this.summonedPetId_ = value;
			}
		}

		// Token: 0x06009F08 RID: 40712 RVA: 0x001A91EE File Offset: 0x001A73EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RecallPetCsReq);
		}

		// Token: 0x06009F09 RID: 40713 RVA: 0x001A91FC File Offset: 0x001A73FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RecallPetCsReq other)
		{
			return other != null && (other == this || (this.SummonedPetId == other.SummonedPetId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009F0A RID: 40714 RVA: 0x001A922C File Offset: 0x001A742C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.SummonedPetId != 0U)
			{
				num ^= this.SummonedPetId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009F0B RID: 40715 RVA: 0x001A926B File Offset: 0x001A746B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009F0C RID: 40716 RVA: 0x001A9273 File Offset: 0x001A7473
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009F0D RID: 40717 RVA: 0x001A927C File Offset: 0x001A747C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SummonedPetId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.SummonedPetId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009F0E RID: 40718 RVA: 0x001A92B0 File Offset: 0x001A74B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.SummonedPetId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SummonedPetId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009F0F RID: 40719 RVA: 0x001A92EE File Offset: 0x001A74EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RecallPetCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.SummonedPetId != 0U)
			{
				this.SummonedPetId = other.SummonedPetId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009F10 RID: 40720 RVA: 0x001A931F File Offset: 0x001A751F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009F11 RID: 40721 RVA: 0x001A9328 File Offset: 0x001A7528
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.SummonedPetId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003D56 RID: 15702
		private static readonly MessageParser<RecallPetCsReq> _parser = new MessageParser<RecallPetCsReq>(() => new RecallPetCsReq());

		// Token: 0x04003D57 RID: 15703
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003D58 RID: 15704
		public const int SummonedPetIdFieldNumber = 7;

		// Token: 0x04003D59 RID: 15705
		private uint summonedPetId_;
	}
}
